home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17703 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.sprintlink.net!datalytics!usenet
  2. From: Rob Stewart <stew@datalytics.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: New Beginner for Visual C++ - Question
  5. Date: Wed, 17 Apr 1996 00:26:04 -0400
  6. Organization: Datalytics, Inc.
  7. Message-ID: <317472DC.2458@datalytics.com>
  8. References: <doug-1304962242380001@port4.lightlink.com> <4krk2p$8mt@reader2.ix.netcom.com>
  9. NNTP-Posting-Host: 204.62.224.241
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Patrick Wallin wrote:
  16. > Hello!
  17. > I am a beginner and learner for Visual C++ Version 1.5. I know C++ and
  18. > some concept of windows programming, but although I have a question
  19. > that I may be blind at that moment.
  20. > When I created a blink windows (for just starting), I looked through
  21. > the source and header files.  The class of CExampleView is a derived of
  22. > base class CView.   I do not see any "include" file for CView in the
  23. > header file for the class CExampleView.
  24. > For example, the following line of code is in the header file that does
  25. > not have any "includes" file for CView:
  26. >     Class CExampleView : public CView
  27. > Can you please tell me where CView class is? And how did Visual C++
  28. > know when to call CView default (own) class?
  29.  
  30. VC configures a file, stdafx.h, in each project you create with 
  31. AppWizard that includes the common headers.  Then, Microsoft 
  32. opts to include the required headers, including stdafx.h, in the 
  33. .cpp files.  It's not the right way, it's just the Microsoft 
  34. way.
  35.  
  36. -- 
  37. Rob Stewart    | My opinions are generally my own.  They do
  38. Datalytics, Inc.| not necessarily reflect those of my employer.
  39.